package com.hdoit.ares.logical.ser.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.tennetcn.common.dao.base.IMapper;
import com.tennetcn.common.message.PagerModel;
import com.hdoit.ares.logical.ser.model.GoodStore;
import com.hdoit.ares.logical.viewmodel.ser.GoodStoreSearch;

/**
 * @author      lvsi
 * @email       
 * @createtime  2017年11月22日 19:45:22
 * @comment
 */
@Repository(value="goodStoreMapper")
public interface GoodStoreMapper extends IMapper<GoodStore>{

	public int queryCountMPById(@Param("search")GoodStoreSearch GoodStoreSearch,@Param("loginId")String loginId);
	
	public List<GoodStore> queryListMPById(@Param("search")GoodStoreSearch GoodStoreSearch,@Param("pager")PagerModel pagerModel,@Param("loginId")String loginId);
	//根据店主Id登录查询所有店铺
	public List<GoodStore> queryListStoreById(@Param("loginId")String loginId);
	
	public GoodStore queryStoreName(@Param("storeId")String storeId);
	//根据员工登录Id查询所有所在店铺
	public List<String> queryListStoreIdById(@Param("loginId")String loginId);
	
	public List<GoodStore> queryStoreById(@Param("loginId")String loginId);
	//查询所有店铺
	public List<GoodStore> queryAllStore(@Param("search")GoodStoreSearch GoodStoreSearch,@Param("pager")PagerModel pagerModel);
	
	public int queryAllStoreCount(@Param("search")GoodStoreSearch GoodStoreSearch);
	
	public GoodStore queryPhoneByStoreId(@Param("storeId")String storeId);
}